package adaptive.opencom;

import java.util.Vector;

import OpenCOM.CFMetaInterface.ExposedInterface;
import OpenCOM.IAccept;
import OpenCOM.ILifeCycle;
import OpenCOM.IMetaInterface;
import OpenCOM.IUnknown;
import OpenCOM.OpenCOMComponent;

/*
 * This component is responsible to validate the architectural configurations 
 * of the components of the Keyboard Framework
 * */
public class AdaptiveAppAccept extends OpenCOMComponent
	implements IAccept, IUnknown, IMetaInterface, ILifeCycle {

	public AdaptiveAppAccept(IUnknown mpIOCM) {
		super(mpIOCM);
	}

	/*
	 * This function validate the architectural structure of the framework
	 * For example: check if all the receptacles are connected
	 * */
	@Override
	public boolean isValid(Vector<IUnknown> graph,
			Vector<ExposedInterface> Intfs, int cComps, int cIntfs) {
		return true;
	}
	
	// ILifeCycle operations
	@Override
	public boolean startup(Object data) {
		return true;
	}

	@Override
	public boolean shutdown() {
		return true;
	}

}
